﻿using Furion;
using Gear.NoSql.Core.Mongo;
using Gear.NoSql.Core.Redis;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gear.NoSql.Core
{
    [AppStartup(1100)]
    public class NoSqlStartup : AppStartup
    {
        /// <summary>
        /// ExamKingCore ConfigureServices
        /// </summary>
        /// <param name="services"></param>
        public void ConfigureServices(IServiceCollection services)
        {
            //MongoDB注册
            services.AddMongoDB(MongoClientSetting.Client);

            //Redis注册
            // RedisClientSettings.InitConnect();

        }

        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {

        }
    }
}
